<?php
/**
 * ===============================================
 * 版权所有 2019-2050 青岛铁锤科技有限公司，并保留所有权利。
 * 网站地址: http://www.huaxianling.com
 * ===============================================
 * Author: Happy dong
 * Created Time: 2019-07-24 14:11
 *
 * Version: 2.0
 */

namespace App\Modules\Message\Validators;


use Flower\Core\Repository\Contracts\ValidatorInterface;
use Flower\Core\Repository\Validator\LaravelValidator;

class MessageLogValidator extends LaravelValidator
{
	protected $rules = [
		ValidatorInterface::RULE_CREATE=>[
			'message_id'   => 'required|numeric',
			'scene'  => 'required|numeric',
			'recipient'      => 'required|numeric',
		]
	];

	protected $messages = [
		'message_id.required'   => '消息id不能为空',
		'message_id.numeric'    => '消息id数据格式，必须为数字',
		'scene.required'  => '场景类型不能为空',
		'scene.numeric'   => '场景类型数据格式不对，必须为数字',
		'recipient.required'      => '消息接受者id，不能为空',
		'recipient.numeric'   => '消息接受者id数据格式不对，必须为数字',
	];


}